Skip to content

Conversation

@andrewheard
Copy link
Contributor

Do not submit, for temporary testing against the Vertex AI staging API. To use, run gcloud auth print-access-token and set the printed value to the environment variable GCLOUD_ACCESS_TOKEN in Xcode.

cURL Example:

curl \
  -H "Authorization: Bearer $(gcloud auth print-access-token)" \
  -H "Content-Type: application/json" \
  'https://us-central1-staging-aiplatform.sandbox.googleapis.com/v1beta1/projects/{PROJECT_ID}/locations/us-central1/publishers/google/models/{MODEL_NAME}:generateContent' \
--data-binary @- << EOF
{
  "contents": [
    {
      "role": "user",
      "parts": { "text": "Why is the sky blue?" }
    }
  ]
}
EOF

#no-changelog

@andrewheard andrewheard closed this May 7, 2025
@firebase firebase locked and limited conversation to collaborators Jul 19, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant